<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link href="../css/home.css" type="text/css" rel="stylesheet"/>
    <script charset="UTF-8" language="javascript" type="text/javascript" src="../js/progressBug.js"></script>
    <script charset="UTF-8" language="javascript" type="text/javascript" src="../js/home.js"></script>
    <link href="../css/bootstrap3.3.6.min.css" rel="stylesheet">
    <script charset="UTF-8" language="javascript" type="text/javascript" src="../js/jquery2.1.1.min.js"></script>
    <script charset="UTF-8" language="javascript" type="text/javascript" src="../js/bootstrap.min.js"></script>
</head>
<body onload="initializeData()">
    <div class="bottom">
        <div class="filter">
            <div>
                <label>迭代版本</label>
                <select class="forBug" id="version" title="" onchange="apiShowBug()"></select>
            </div>
            <div>
                <label>年份</label>
                <input style="width: 120px" id="year" title="年份" onblur="apiShowBug()">
            </div>
            <div>
                <label>项目</label>
                <select class="forBug" id="project" title="" onchange="apiShowBug()"></select>
            </div>
            <div>
                <label>归属</label>
                <select class="forBug" id="owner" title="" onchange="apiShowBug()"></select>
            </div>
            <div>
                <label>状态</label>
                <select class="forBug" id="state" title="" onchange="apiShowBug()"></select>
            </div>
            <div>
                <label>关键字</label>
                <input style="width: 120px" id="key" title="" onblur="apiShowBug()">
            </div>
            <button onclick="controlTopDivBut('open')">提问题</button>
        </div>
        <div class="content">
            <table id="table" style="width: 100%">
                <tr id="tableheader">
                    <th style="width:40px">序号</th>
                    <th style="width:40px">级别</th>
                    <th style="width:80px">归属</th>
                    <th>概述</th>
                    <th style="width:120px;">操作</th>
                </tr>
            </table>
        </div>
    </div>

    <div class="topDiv1000" id="bug" style="display: none;">
        <div class="topDiv1002 topDivCenter" style="width: 750px; margin-top:150px">
            <div style="width: 100%">
                <label class="topDivTitle" id="topDivTitle">提问题</label>
                <label class="close" onclick="controlTopDivBut('close', '')">X</label>
            </div>
            <div style="width: 100%; padding: 0 20px 0 20px; text-align: center">
                <div>
                    <div id="bugId" style="display: none"></div>
                    <div>
                        <label>迭代版本:</label>
                        <select id="version1" title="" onchange="apiGetModule(selectedText(this))"></select>
                    </div>
                    <div>
                        <label>所属模块:</label>
                        <select id="module1" title=""></select>
                    </div>
                    <div>
                        <label>问题归属:</label>
                        <select id="developer" title=""></select>
                    </div>
                    <div>
                        <label>等级:</label>
                        <select title="" style="width: 68px" name="" id="first" onchange="selectedValue(this)">
                            <option value="3">一般</option>
                            <option value="2">严重</option>
                            <option value="1">阻碍</option>
                        </select>
                    </div>
                </div>

                <div>
                    <div>
                        <label>标题:</label>
                        <input style="width: 572px" placeholder="标题" type="text" id="title"/>
                    </div>
                    <div>
                        <label>详述:</label>
                        <textarea style="max-width: 572px; min-width: 572px" placeholder="详细描述问题" id="describe"></textarea>
                    </div>
                    <div>
                        <label>上传图片</label>
                        <input style="width: 500px" type="file" id="file" name="file" multiple="multiple" onchange="apiUploadImg()"/>
                    </div>
                    <div id="img"></div>
                </div>
                <button onclick="apiSaveBug()">提交</button>
            </div>
        </div>
    </div>
    <div class="topDiv1000" id="pic" style="display: none;">
        <div style="width:100%; height:100%; position:absolute; z-index: 1005" onclick="controlPicTitle('close', '')"></div>
        <div class="topDiv1002 topDivCenter" style="margin-top:50px">
            <button class="butPic" style="display: block; width:50px; height: 433px;float: left;" onclick="switchPic('-')"> <<< </button>
            <span id="showPic"></span>
            <button class="butPic" style="display: block; width:50px; height: 433px;float: right;" onclick="switchPic('+')"> >>> </button>
        </div>
    </div>
</body>
</html>